//
//  ViewController.swift
//  AFNetworking封装
//
//  Created by iwan on 2017/4/17.
//  Copyright © 2017年 iwan. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
   
    }

    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        
        NetworkTools.shareInstance.request(requestType: .GET, urlString: "http://httpbin.org/get", parameters: ["name":"ywf"]) { (result, error) in
            if error != nil{
                print(error!)
            }
            print(result!)
        }
    }

}

